/**
 * 负责创建虚拟节点
 * @param {string} sel
 * @param {{key: string}} data
 * @param {*[]} children
 * @param {节点文本内容} text
 * @param {对应真实dom节点} elm
 */
export const vnode = (sel, data, children, text, elm) => {
  const key = data.key;
  return {
    sel,
    data,
    children,
    text,
    elm,
    key
  };
};
